const char wifi[] PROGMEM = R"rawliteral( WiFi Setting

Select a WiFi Network






)rawliteral"; const char saved[] PROGMEM = R"rawliteral( WiFi Setting

Setting saved

If you are connected successfully, you will see your IP adress below:

%WIFIIP%

)rawliteral"; const char home[] PROGMEM = R"rawliteral( Sensor Board

Sensor board for Microfluidics

How to use:

This sensor board provides the following APIs that you can use GET-Method to fetch the response. Most of the APIs return a JSON as a response body. The parameters' value is indicated in blue. Besides the Wi-Fi direct connection, you can also connect this sensor board to your WLAN by opening the http://192.168.4.1/connectWifi in your browser and following the instruction on the website.

Name of the featureAPIRespose example
Connect the board to WLAN/Wifi/setWifi?ssid=MyWifiName&pswd=WifiPasswordA website
Turn on/off the white LEDs/setWhite?state=on
{"success":"true"}
Turn on/off the UV LEDs/setUV?state=on{"success":"true"}
Change the brightness of the white LEDs [0 to 1023]/setWhite?level=255{"success":"true"}
Change the brightness of the UV LEDs [0 to 1023]/setUV?level=255{"success":"true"}
Change the colorimetric sensor frequency scaling [2, 20, 100]/setScal?scaling=20{"success":"true"}
Get the colorimetric sensor frequency data/getRGB{"value":{"R":45,"G":65,"B":102},"success":"true"}
Get the sensor board's IP addresses/getIP{"direct":"192.168.4.1","lan":"192.168.1.101","success":"true"}
Factory reset and clear all settings/factoryresetNo response
)rawliteral"; const char helpMsg[] PROGMEM = R"rawliteral( #Name of the feature #Command #Respose example Turn on/off the white LEDs SET WHITE ON OK Turn on/off the UV LEDs SET UV ON OK Change the brightness of SET WHITE LEVEL 255 OK the white LEDs [0 to 1023] Change the brightness of SET UV LEVEL 255 OK the UV LEDs [0 to 1023] Change the colorimetric SET SCAL 20 OK sensor frequency scaling [2, 20, 100] Get the colorimetric GET RGB [20,67,102] sensor frequency data Factory reset and FACTORYRESET No Response clear all settings )rawliteral";